﻿
Imports Moca.Attr
Imports Moca.Db.Attr
Imports Moca.Util

''' <summary>
''' セットアップページ入力項目エンティティ
''' </summary>
''' <remarks></remarks>
Public Class SetupEntity

	Protected tableDefinition As ISetupDefinistion

	''' <summary>
	''' メールアドレス
	''' </summary>
	''' <value></value>
	''' <returns></returns>
	''' <remarks></remarks>
	<Caption("Admin Mail"),
	 BindControl("txtMail"),
	 Validate(ValidateTypes.Required Or ValidateTypes.Mail Or ValidateTypes.LenghtMax)> _
	Public Property Mail As String

	''' <summary>
	''' パスワード
	''' </summary>
	''' <value></value>
	''' <returns></returns>
	''' <remarks></remarks>
	<Caption("Admin Password"),
	 BindControl("txtPassword"),
	 Validate(ValidateTypes.Required Or ValidateTypes.LenghtMin Or ValidateTypes.LenghtMax, 8)> _
	Public Property Password As String

End Class

#Region " Definition "

''' <summary> 
''' tbUser エンティティ定義 
''' </summary> 
''' <remarks></remarks> 
''' <history> 
''' </history> 
<Table(Sys.C_CONNECTION_STRING, "tbUser")>
Public Interface ISetupDefinistion

	''' <summary> 
	''' Table (Table) Property. 
	''' </summary> 
	Property Table() As Moca.Db.DbInfoTable

	''' <summary> 
	''' Mail (Mail) Property. 
	''' </summary> 
	<Column("Mail")> _
	Property Mail() As Moca.Db.DbInfoColumn

	''' <summary> 
	''' Password (Password) Property. 
	''' </summary> 
	<Column("Password")> _
	Property Password() As Moca.Db.DbInfoColumn

End Interface

#End Region
